package com.shop.controller;


import com.shop.common.result.util.ResultModel;
import com.shop.service.WarehouseInfoService;
import com.shop.vo.seller.SelectWarehouseInfoByShopVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 仓库表 前端控制器
 * </p>
 *
 * @author 靳 旺
 * @since 2021-01-29
 */
@RestController
@Api(tags = "仓库前端控制器")
@RequestMapping("/warehouse-info-do")
public class WarehouseInfoController {

    @Autowired
    private WarehouseInfoService warehouseInfoService;

    @PostMapping("selectWarehouseInfoByShop")
    @ApiOperation(value = "查询仓库",notes = "靳旺")
    public ResultModel selectWarehouseInfoByShop(@RequestBody SelectWarehouseInfoByShopVo selectWarehouseInfoByShopVo)throws Exception{
        return warehouseInfoService.selectWarehouseInfoByShop(selectWarehouseInfoByShopVo);
    }

}
